Azure Load Testing (preview:2024-03-01)

2025/08/21 • 2 updated methods

LoadTestRun_CreateOrUpdateAppComponents (updated)
Description Add an app component to a test run by providing the resource Id, name and type.
Reference Link ¶

⚶ Changes

{
  "#id": "LoadTestRun_CreateOrUpdateAppComponents",
  "$parameters": [
    {
      "#name": "testRunId",
      "Description": {
        "new": "Unique name for the load test run, must contain only lower-case alphabetic,\nnumeric, underscore or hyphen characters.",
        "old": "Unique Id for the load test run, must contain only lower-case alphabetic,\nnumeric, underscore or hyphen characters."
      }
    }
  ]
}

⚼ Request

PATCH:  /test-runs/{testRunId}/app-components
{
api-version: string ,
testRunId: string ,
body:
{
components: object ,
}
,
}

⚐ Response (200)

{
components: object ,
testRunId: string ,
createdDateTime: string ,
createdBy: string ,
lastModifiedDateTime: string ,
lastModifiedBy: string ,
}

⚐ Response (201)

{
components: object ,
testRunId: string ,
createdDateTime: string ,
createdBy: string ,
lastModifiedDateTime: string ,
lastModifiedBy: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
LoadTestRun_CreateOrUpdateServerMetricsConfig (updated)
Description Configure server metrics for a test run
Reference Link ¶

⚶ Changes

{
  "#id": "LoadTestRun_CreateOrUpdateServerMetricsConfig",
  "$parameters": [
    {
      "#name": "testRunId",
      "Description": {
        "new": "Unique name for the load test run, must contain only lower-case alphabetic,\nnumeric, underscore or hyphen characters.",
        "old": "Unique Id for the load test run, must contain only lower-case alphabetic,\nnumeric, underscore or hyphen characters."
      }
    }
  ]
}

⚼ Request

PATCH:  /test-runs/{testRunId}/server-metrics-config
{
api-version: string ,
testRunId: string ,
body:
{
testRunId: string ,
metrics: object ,
createdDateTime: string ,
createdBy: string ,
lastModifiedDateTime: string ,
lastModifiedBy: string ,
}
,
}

⚐ Response (200)

{
testRunId: string ,
metrics: object ,
createdDateTime: string ,
createdBy: string ,
lastModifiedDateTime: string ,
lastModifiedBy: string ,
}

⚐ Response (201)

{
testRunId: string ,
metrics: object ,
createdDateTime: string ,
createdBy: string ,
lastModifiedDateTime: string ,
lastModifiedBy: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}